@layout("/common/_curd/_container.html"){

	<form data-url="${basePath}/${code}/save" method="post" class="form-horizontal" role="form">
	</br>
	<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" >所属数据源</label>
			<div class="col-sm-3">
				<select name="db_sql.db_source_id" id="db_source_id" style="width: 250px;">
					@for(x in list){
						<option value="${x.id!}" >${x.description!}</option>
					@}
				</select>
			</div>
			</div>
		<!-- 表单 -->
		@ var _table="db_sql";
		@ var _col=[
		@			  {name:"名称", index:"name", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"类型", index:"type", type:"select_123",newline:true,length:8,required:"required"},
		@			  {name:"连接语句", index:"sqlstring", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"检索字段", index:"Search_fields", type:"text",newline:true,length:8},
		@			  {name:"描述", index:"description", type:"text",newline:true,length:8},
		@			  {name:"更新周期", index:"interval", type:"text",newline:true,length:8,required:"required"}		
		@		   ];
		@ include("/common/_curd/_add.html", {"col":_col, "table":_table}){}
		
		<!-- 按钮 -->
		@ include("/common/_curd/_btn.html", {btn_test:"测试",btn_save:"新增", btn_close:"关闭"}) {}
	</form>

@}
